7edfd544069a8e2256ac9271263afbe637acee8c,portal-impl/src/com/liferay/portlet/tags/service/impl/TagsEntryLocalServiceImpl.java,TagsEntryLocalServiceImpl,addEntry,#number#String#String#String#String[]#,89
Before Change
entry.setName(name);
if (Validator.isNotNull(vocabularyName)) {
TagsVocabulary vocabulary = tagsVocabularyPersistence.findByC_N(
user.getCompanyId(), vocabularyName);
entry.setVocabularyId(vocabulary.getVocabularyId());
}
After Change
entry.setName(name);
if (Validator.isNull(vocabularyName)) {
vocabularyName = PropsValues.TAGS_VOCABULARY_DEFAULT;
}
TagsVocabulary vocabulary;
try {
vocabulary = tagsVocabularyPersistence.findByC_N(
user.getCompanyId(), vocabularyName);
}
catch (NoSuchVocabularyException nsve) {
if (vocabularyName.equals(PropsValues.TAGS_VOCABULARY_DEFAULT)) {